import { createApp } from 'vue'
// import './style.css'
import App from '@/App.vue'
import '@/style.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})

// 引入svg全局注册组件
import 'virtual:svg-icons-register'
// 引入公告scss样式
import '@/styles/index.scss'

// 引入公共组件
import gloablComponent from './components/index'

app.use(gloablComponent)

console.log(import.meta.env)
app.mount('#app')
